/*pmFWCFu5nhKkBzYmrkBakfxhGyU133bSues6k3fnvQqjnPkGQmqzoLMAiXG/i3Hg*/
import { appcode, pageId, tableId, searchId,tableId_bf,tableId_df } from '../constants';

export default function (props) {
	const that = this;
	props.createUIDom(
		{
			pagecode: pageId,//页面code
			appcode: appcode//小应用code
		},
		function (data) {
			if (data) {
				if (data.template) {
					let meta = data.template;
					props.meta.setMeta(meta);
				}
				if (data.button) {
					let button = data.button;
					props.button.setButtons(button);
				}
			}
		}
	)
}


function getVisibleButton(e,data, key) {
	let flag = true;//按钮的状态，默认为true
	let isinit = data.values.isinit.value ? data.values.isinit.value : null;//是否默认
	switch (key) {
		case 'SetDefault'://设为默认
			if (isinit == e.state.json['verificationsheet-000090'] || isinit == "02006ver-0383") {/* 国际化处理： 默认*/
				flag = false;
			}
			break;
		case 'CancelDefault'://取消默认
			if (isinit == "" || isinit == null) {
				flag = false;
			}
			break;
		default:
			break;
	}
	return flag;
}

/*pmFWCFu5nhKkBzYmrkBakfxhGyU133bSues6k3fnvQqjnPkGQmqzoLMAiXG/i3Hg*/